package com.songlanyun.common.utils;


/**
 * 消息模板
 */
public enum MsgTemEnum {
    /**
     * 账单提醒
     */
    BillRemind(1, "水费"),
    Recvs(6, "欠费账单"),
    BillEnergy(2, "电费"),
    BillProperty(3, "物业费"),
    /**
     * 房间绑定
     */
    RoomPass(11, "审核通过"),
    RoomNoPass(12, "审核不通过"),
    RoomWait(13, "处理中"),
    /**
     * 报事报修
     */
    RepairsWait(21, "待处理"),
    RepairsSuccess(22, "已完成"),
    RepairsDesignate(23, "报事已指派"),
    RepairsRedeploy(24, "报事已转派"),
    /**
     * 投诉
     */
    Complain(31, "投诉已受理"),
    //投诉发送给管家的
    ComplainWait(32, "投诉待受理"),
    ComplainRedeploy(33, "投诉已转派"),
    /**
     * 装修申请
     */
    FitmentPass(41, "装修申请审核通过"),
    FitmentNoPass(42, "装修申请审核不通过"),
    FitmentWaitOne(43, "装修申请等待初验"),
    FitmentWaitTwo(44, "装修申请等待二次验收"),
    FitmentSuccess(45, "装修申请已完成"),
    FitmentPassOne(46, "初验通过"),
    FitmentNoPassOne(47, "初验不通过"),
    FitmentPassTwo(48, "二次验收通过"),
    FitmentNoPassTwo(49, "二次验收不通过"),
    //装修发送给管家的
    FitmentWaitCheck(50, "装修申请等待审核"),
    FitmentWaitUpload(51, "装修申请等待上传凭证"),
    FitmentWaitOneCheck(52, "装修申请等待初验审核"),
    FitmentWaitTwoCheck(53, "装修申请等待二验审核"),
    FitmentDesignate(54, "装修申请已指派"),
    FitmentRedeploy(55, "装修申请已转派"),
    /**
     * 放行条
     */
    PassWait(61, "放行条待审核"),
    PassPass(62, "放行条审核通过"),
    PassNoPass(63, "放行条审核不通过"),
    PassRedeploy(64, "放行条已转派"),

    ;
    private Integer value;
    private String title;

    MsgTemEnum(Integer value, String title) {
        this.value = value;
        this.title = title;
    }

    public Integer getValue() {
        return value;
    }

    public String getTitle() {
        return title;
    }

    public static String vByTitle(Integer value) {
        MsgTemEnum[] msgTemEnums = values();
        for (MsgTemEnum msgTemEnum : msgTemEnums) {
            if (msgTemEnum.getValue().equals(value)) {
                return msgTemEnum.getTitle();
            }
        }
        return null;
    }
}
